home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / documents / OpenGL / extensions / man / glbindtextureext.z / glbindtextureext
Encoding:
Text File  |  1996-11-11  |  9.5 KB  |  133 lines

  1.  
  2.  
  3.  
  4. ggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeeeEEEEXXXXTTTT((((3333GGGG))))           OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee           ggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeeeEEEEXXXXTTTT((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeeeEEEEXXXXTTTT - bind a named texture to a texturing target
  10.  
  11.  
  12. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  13.      void ggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeeeEEEEXXXXTTTT( GLenum _t_a_r_g_e_t,
  14.                             GLuint _t_e_x_t_u_r_e )
  15.  
  16.  
  17. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  18.      _t_a_r_g_e_t   The target to which the texture will be bound.  Must be one of
  19.               GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE____1111DDDD, GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE____2222DDDD, GGGGLLLL____DDDDEEEETTTTAAAAIIIILLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE____2222DDDD____SSSSGGGGIIIISSSS, or
  20.               GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE____3333DDDD____EEEEXXXXTTTT.
  21.  
  22.      _t_e_x_t_u_r_e  The name of a texture.
  23.  
  24. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  25.      ggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeeeEEEEXXXXTTTT is part of the EEEEXXXXTTTT____tttteeeexxxxttttuuuurrrreeee____oooobbbbjjjjeeeecccctttt extension.  This
  26.      extension makes it possible to use named 1-, 2-, and 3-dimensional
  27.      textures in addition to the usual OpenGL texture targets designated by
  28.      GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE____1111DDDD, GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE____2222DDDD, etc.
  29.  
  30.      Texture names are unsigned integers.  The value zero is reserved to
  31.      represent the default texture for each texture target.  Texture names and
  32.      the corresponding texture contents are local to the shared display-list
  33.      space (see ggggllllXXXXCCCCrrrreeeeaaaatttteeeeCCCCoooonnnntttteeeexxxxtttt) of the current OpenGL rendering context; two
  34.      rendering contexts will share texture names only if they also share
  35.      display lists.
  36.  
  37.      To create a named texture, simply bind a previously-unused texture name
  38.      to one of the texture targets listed above.  This can be accomplished by
  39.      calling ggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeeeEEEEXXXXTTTT with _t_a_r_g_e_t set to the appropriate texture
  40.      target, and _t_e_x_t_u_r_e set to the name of the new texture.  When a texture
  41.      is bound to a target, the previous binding for that target is
  42.      automatically broken.
  43.  
  44.      Note that ggggllllGGGGeeeennnnTTTTeeeexxxxttttuuuurrrreeeessssEEEEXXXXTTTT may be used to generate a set of fresh texture
  45.      names.
  46.  
  47.      When a texture is first bound it assumes the dimensionality of its
  48.      target:  A texture first bound to GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE____1111DDDD becomes 1-dimensional, a
  49.      texture first bound to GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE____2222DDDD becomes 2-dimensional, and so on.
  50.      The state of a 1-dimensional texture immediately after it is first bound
  51.      is equivalent to the state of the default GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE____1111DDDD at GL
  52.      initialization, and similarly for 2- and 3-dimensional textures.
  53.  
  54.      While a texture is bound, GL operations on the target to which it is
  55.      bound affect the bound texture, and queries of the target to which it is
  56.      bound return state from the bound texture.  If texture mapping of the
  57.      dimensionality of the target to which a texture is bound is active, the
  58.      bound texture is used.  In effect, the texture targets become aliases for
  59.      the textures currently bound to them, and the texture name zero refers to
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeeeEEEEXXXXTTTT((((3333GGGG))))           OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee           ggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeeeEEEEXXXXTTTT((((3333GGGG))))
  71.  
  72.  
  73.  
  74.      the default textures that were bound to them at initialization.
  75.  
  76.      A texture binding created with ggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeeeEEEEXXXXTTTT remains active until a
  77.      different texture is bound to the same target, or until the bound texture
  78.      is deleted with ggggllllDDDDeeeelllleeeetttteeeeTTTTeeeexxxxttttuuuurrrreeeessssEEEEXXXXTTTT.
  79.  
  80.      Once created, a named texture may be re-bound to the appropriate target
  81.      as often as needed.  It is usually much faster to bind an existing named
  82.      texture to one of the texture targets using ggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeeeEEEEXXXXTTTT than it is
  83.      to reload the texture image using ggggllllTTTTeeeexxxxIIIImmmmaaaaggggeeee****.  For additional control
  84.      over performance, consider using ggggllllPPPPrrrriiiioooorrrriiiittttiiiizzzzeeeeTTTTeeeexxxxttttuuuurrrreeeessssEEEEXXXXTTTT.
  85.  
  86.      ggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeeeEEEEXXXXTTTT is included in display lists.
  87.  
  88. NNNNOOOOTTTTEEEESSSS
  89.      See ggggllllIIIInnnnttttrrrroooo for more information about using extensions.
  90.  
  91. EEEERRRRRRRROOOORRRRSSSS
  92.      GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____EEEENNNNUUUUMMMM is generated if _t_a_r_g_e_t is not one of the allowable
  93.      values.
  94.  
  95.      GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN is generated if _t_e_x_t_u_r_e has a dimensionality and it
  96.      doesn't match that of _t_a_r_g_e_t.
  97.  
  98.      GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN is generated if ggggllllBBBBiiiinnnnddddTTTTeeeexxxxttttuuuurrrreeeeEEEEXXXXTTTT is executed between
  99.      the execution of ggggllllBBBBeeeeggggiiiinnnn and the corresponding execution of ggggllllEEEEnnnndddd.
  100.  
  101. AAAASSSSSSSSOOOOCCCCIIIIAAAATTTTEEEEDDDD GGGGEEEETTTTSSSS
  102.      ggggllllGGGGeeeetttt with parameter names GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE____1111DDDD____BBBBIIIINNNNDDDDIIIINNNNGGGG____EEEEXXXXTTTT,
  103.      GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE____2222DDDD____BBBBIIIINNNNDDDDIIIINNNNGGGG____EEEEXXXXTTTT, and GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE____3333DDDD____BBBBIIIINNNNDDDDIIIINNNNGGGG____EEEEXXXXTTTT.
  104.  
  105.  
  106. MMMMAAAACCCCHHHHIIIINNNNEEEE DDDDEEEEPPPPEEEENNNNDDDDEEEENNNNCCCCIIIIEEEESSSS
  107.      RealityEngine, RealityEngine2, and VTX systems do not support texture
  108.      name sharing.  Texture names are always local to the rendering context
  109.      which was active at the time the names were created.
  110.  
  111.  
  112. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  113.      ggggllllDDDDeeeelllleeeetttteeeeTTTTeeeexxxxttttuuuurrrreeeessssEEEEXXXXTTTT, ggggllllGGGGeeeennnnTTTTeeeexxxxttttuuuurrrreeeessssEEEEXXXXTTTT, ggggllllGGGGeeeetttt, ggggllllGGGGeeeettttTTTTeeeexxxxPPPPaaaarrrraaaammmmeeeetttteeeerrrr,
  114.      ggggllllIIIIssssTTTTeeeexxxxttttuuuurrrreeeeEEEEXXXXTTTT, ggggllllTTTTeeeexxxxIIIImmmmaaaaggggeeee1111DDDD, ggggllllTTTTeeeexxxxIIIImmmmaaaaggggeeee2222DDDD, ggggllllTTTTeeeexxxxIIIImmmmaaaaggggeeee3333DDDDEEEEXXXXTTTT,
  115.      ggggllllTTTTeeeexxxxPPPPaaaarrrraaaammmmeeeetttteeeerrrr.
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.